package com.mohan.config;

import com.mohan.bean.Dog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.mohan.bean")
public class MainConfigOfLifecle {

    @Bean(initMethod = "init",destroyMethod = "destory")
    public Dog dog() {
        return new Dog();
    }
}
